package com.ksyun.campus.client.domain;

import java.util.List;

/**
 * Response for /api/v1/meta/open API
 */
public class OpenResponse {
    
    private String fileId;
    private long blockSize;
    private List<BlockInfo> blocks;
    
    public OpenResponse() {
    }
    
    public OpenResponse(String fileId, long blockSize, List<BlockInfo> blocks) {
        this.fileId = fileId;
        this.blockSize = blockSize;
        this.blocks = blocks;
    }
    
    public String getFileId() {
        return fileId;
    }
    
    public void setFileId(String fileId) {
        this.fileId = fileId;
    }
    
    public long getBlockSize() {
        return blockSize;
    }
    
    public void setBlockSize(long blockSize) {
        this.blockSize = blockSize;
    }
    
    public List<BlockInfo> getBlocks() {
        return blocks;
    }
    
    public void setBlocks(List<BlockInfo> blocks) {
        this.blocks = blocks;
    }
}
